<template>
	<Business v-if="userStore.isRoleBusiness"></Business>
	<Customer v-else></Customer>
</template>

<script setup>
	import { onLoad } from "@dcloudio/uni-app";
	import { useUserStore } from "@/store/user.js";
	import Customer from "./customer/index.vue";
	import Business from "./business/index.vue";

	const userStore = useUserStore();
	
	onLoad((options) => {
		userStore.SET_REGISTER_INVITE_CODE(options.scene);
	});
</script>

<style lang="scss" scoped>

</style>